<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />

<div id="prescription-header-container" class="header-container">
	<h1 class="fg-orange">
		<i class="icon-file"></i>
		Prescription
		<small class="on-left-more ${(mode == 'registration' || mode == 'list') ? 'opt1-4' : ''}">
			<s:if test="%{#mode == 'details' || #mode == 'registration' || #mode == 'list'}">
				details
			</s:if>
			<s:else>
				<a href="${contextPath}/prescription/show?id=${guiPrescription.prescriptionId}">details</a>
			</s:else>
		</small>
		<small class="on-left-more ${(mode == 'registration' || mode == 'list') ? 'opt1-4' : ''}">
			<s:if test="%{#mode == 'edit' || #mode == 'registration' || #mode == 'list'}">
				edit
			</s:if>
			<s:else>
				<a href="${contextPath}/prescription/edit?id=${guiPrescription.prescriptionId}">edit</a>
			</s:else>
		</small>
		<small class="on-left-more">
			<s:if test="%{#mode == 'registration'}">
				registration
			</s:if>
			<s:else>
				<a href="${contextPath}/prescription/registration">registration</a>
			</s:else>
		</small>
		<small class="on-left-more ${(mode == 'registration' || patientId == 0) ? 'opt1-4' : ''}">
			<s:if test="%{#mode == 'list' || patientId == 0}">
				list
			</s:if>
			<s:else>
				<a href="${contextPath}/prescription/list">list</a>
			</s:else>
		</small>
	</h1>
</div>